
package com.ray.tcc.dubbo.interceptor;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

import com.ray.tcc.core.interceptor.AbstractTccTransactionAspect;


/**
 * @author ray
 */
@Aspect
@Component
public class DubboTccTransactionAspect extends AbstractTccTransactionAspect implements Ordered {


    @Autowired
    public DubboTccTransactionAspect(DubboTccTransactionInterceptor dubboTccTransactionInterceptor) {
        super.setTccTransactionInterceptor(dubboTccTransactionInterceptor);
    }


   
    public int getOrder() {
        return Ordered.HIGHEST_PRECEDENCE;
    }
}
